<template>
  <div class="tuijian">
    <div class="top">
      <img :src="newdata.touxiangImg" alt="">
      <span class="name">{{newdata.touxiangName}}</span>
      <span class="more">···</span>
    </div>
    <p class="title">
      {{newdata.title}}
    </p>
    <p class="content">
      {{newdata.content}}
    </p>
    <img class="post" :src="newdata.postImg" alt="">
    <section class="bottom">
      <span class="left">{{newdata.kind}}</span>
      <span class="right">
        <span class="one">
          <span class="iconfont icon-see"></span>
          <span class="zi">{{newdata.watch}}</span>
        </span>
        <span class="one">
          <span class="iconfont icon-pinglun"></span>
          <span class="zi">{{newdata.pinglun}}</span>
        </span>
        <span class="one">
          <span class="iconfont icon-like"></span>
          <span class="zi">{{newdata.dianzan}}</span>
        </span>
      </span>
    </section>
  </div>
</template>

<script>
export default {
  created(){
    this.$store.dispatch('gettuijian',{url:"/data/Home/tuijian"})
  },
  computed:{
    newdata(){
      return this.$store.state.tuijian.data;
    }
  },
}
</script>

<style scoped>
  .tuijian{
    min-height: 3.5rem;
    background-color: white;
  }
  .tuijian .top{
    height: .4rem;
    line-height: .3rem;
    padding: .05rem 0;
  }
  .tuijian .top img{
    height: 100%;
    border-radius: 50%;
    vertical-align: middle;
  }
  .tuijian .top .name{
    font-size: .12rem;
    margin-left: .05rem;
  }
  .tuijian .top .more{
    font-size: .16rem;
    font-weight: 700;
    float: right;
    color: rgb(155,155,155);
  }
  .tuijian .title{
    height: .333rem;
    /* background-color: turquoise; */
    line-height: .333rem;
  }
  .tuijian .content{
    min-height: .24rem;
    /* background-color: violet; */
    font-size: .14rem;
    color: rgb(155,155,155);
    
  }
  .tuijian .post{
    width: 100%;
    border-radius: 3%;
    margin: .05rem 0 0 0;
  }
  .tuijian .bottom{
    display: flex;
    justify-content: space-between;
    /* background-color: green; */
    padding: .05rem 0;
    margin-bottom: .1rem;
  }
  .tuijian .bottom .left{
    padding: .02rem .05rem;
    background-color: rgb(240,240,240);
    color: rgb(155,155,155);
  }
  .tuijian .bottom .one{
    margin-left: .2rem;
    color: rgb(155,155,155);
    font-size: .14rem;
  }
  .icon-see,.icon-pinglun,.icon-like{
    font-size: .16rem;
  }
</style>